<!DOCTYPE html>
<html>

<head>

<meta charset="utf-8">
<title>Server_API</title>


<style type="text/css">
body {
  font-family: Helvetica, arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: white;
  padding: 30px; }

body > *:first-child {
  margin-top: 0 !important; }
body > *:last-child {
  margin-bottom: 0 !important; }

a {
  color: #4183C4; }
a.absent {
  color: #cc0000; }
a.anchor {
  display: block;
  padding-left: 30px;
  margin-left: -30px;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0; }

h1, h2, h3, h4, h5, h6 {
  margin: 20px 0 10px;
  padding: 0;
  font-weight: bold;
  -webkit-font-smoothing: antialiased;
  cursor: text;
  position: relative; }

h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor, h4:hover a.anchor, h5:hover a.anchor, h6:hover a.anchor {
  background: url() no-repeat 10px center;
  text-decoration: none; }

h1 tt, h1 code {
  font-size: inherit; }

h2 tt, h2 code {
  font-size: inherit; }

h3 tt, h3 code {
  font-size: inherit; }

h4 tt, h4 code {
  font-size: inherit; }

h5 tt, h5 code {
  font-size: inherit; }

h6 tt, h6 code {
  font-size: inherit; }

h1 {
  font-size: 28px;
  color: black; }

h2 {
  font-size: 24px;
  border-bottom: 1px solid #cccccc;
  color: black; }

h3 {
  font-size: 18px; }

h4 {
  font-size: 16px; }

h5 {
  font-size: 14px; }

h6 {
  color: #777777;
  font-size: 14px; }

p, blockquote, ul, ol, dl, li, table, pre {
  margin: 15px 0; }

hr {
  background: transparent url() repeat-x 0 0;
  border: 0 none;
  color: #cccccc;
  height: 4px;
  padding: 0;
}

body > h2:first-child {
  margin-top: 0;
  padding-top: 0; }
body > h1:first-child {
  margin-top: 0;
  padding-top: 0; }
  body > h1:first-child + h2 {
    margin-top: 0;
    padding-top: 0; }
body > h3:first-child, body > h4:first-child, body > h5:first-child, body > h6:first-child {
  margin-top: 0;
  padding-top: 0; }

a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
  margin-top: 0;
  padding-top: 0; }

h1 p, h2 p, h3 p, h4 p, h5 p, h6 p {
  margin-top: 0; }

li p.first {
  display: inline-block; }
li {
  margin: 0; }
ul, ol {
  padding-left: 30px; }

ul :first-child, ol :first-child {
  margin-top: 0; }

dl {
  padding: 0; }
  dl dt {
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
    padding: 0;
    margin: 15px 0 5px; }
    dl dt:first-child {
      padding: 0; }
    dl dt > :first-child {
      margin-top: 0; }
    dl dt > :last-child {
      margin-bottom: 0; }
  dl dd {
    margin: 0 0 15px;
    padding: 0 15px; }
    dl dd > :first-child {
      margin-top: 0; }
    dl dd > :last-child {
      margin-bottom: 0; }

blockquote {
  border-left: 4px solid #dddddd;
  padding: 0 15px;
  color: #777777; }
  blockquote > :first-child {
    margin-top: 0; }
  blockquote > :last-child {
    margin-bottom: 0; }

table {
  padding: 0;border-collapse: collapse; }
  table tr {
    border-top: 1px solid #cccccc;
    background-color: white;
    margin: 0;
    padding: 0; }
    table tr:nth-child(2n) {
      background-color: #f8f8f8; }
    table tr th {
      font-weight: bold;
      border: 1px solid #cccccc;
      margin: 0;
      padding: 6px 13px; }
    table tr td {
      border: 1px solid #cccccc;
      margin: 0;
      padding: 6px 13px; }
    table tr th :first-child, table tr td :first-child {
      margin-top: 0; }
    table tr th :last-child, table tr td :last-child {
      margin-bottom: 0; }

img {
  max-width: 100%; }

span.frame {
  display: block;
  overflow: hidden; }
  span.frame > span {
    border: 1px solid #dddddd;
    display: block;
    float: left;
    overflow: hidden;
    margin: 13px 0 0;
    padding: 7px;
    width: auto; }
  span.frame span img {
    display: block;
    float: left; }
  span.frame span span {
    clear: both;
    color: #333333;
    display: block;
    padding: 5px 0 0; }
span.align-center {
  display: block;
  overflow: hidden;
  clear: both; }
  span.align-center > span {
    display: block;
    overflow: hidden;
    margin: 13px auto 0;
    text-align: center; }
  span.align-center span img {
    margin: 0 auto;
    text-align: center; }
span.align-right {
  display: block;
  overflow: hidden;
  clear: both; }
  span.align-right > span {
    display: block;
    overflow: hidden;
    margin: 13px 0 0;
    text-align: right; }
  span.align-right span img {
    margin: 0;
    text-align: right; }
span.float-left {
  display: block;
  margin-right: 13px;
  overflow: hidden;
  float: left; }
  span.float-left span {
    margin: 13px 0 0; }
span.float-right {
  display: block;
  margin-left: 13px;
  overflow: hidden;
  float: right; }
  span.float-right > span {
    display: block;
    overflow: hidden;
    margin: 13px auto 0;
    text-align: right; }

code, tt {
  margin: 0 2px;
  padding: 0 5px;
  white-space: nowrap;
  border: 1px solid #eaeaea;
  background-color: #f8f8f8;
  border-radius: 3px; }

pre code {
  margin: 0;
  padding: 0;
  white-space: pre;
  border: none;
  background: transparent; }

.highlight pre {
  background-color: #f8f8f8;
  border: 1px solid #cccccc;
  font-size: 13px;
  line-height: 19px;
  overflow: auto;
  padding: 6px 10px;
  border-radius: 3px; }

pre {
  background-color: #f8f8f8;
  border: 1px solid #cccccc;
  font-size: 13px;
  line-height: 19px;
  overflow: auto;
  padding: 6px 10px;
  border-radius: 3px; }
  pre code, pre tt {
    background-color: transparent;
    border: none; }

sup {
    font-size: 0.83em;
    vertical-align: super;
    line-height: 0;
}

kbd {
  display: inline-block;
  padding: 3px 5px;
  font-size: 11px;
  line-height: 10px;
  color: #555;
  vertical-align: middle;
  background-color: #fcfcfc;
  border: solid 1px #ccc;
  border-bottom-color: #bbb;
  border-radius: 3px;
  box-shadow: inset 0 -1px 0 #bbb
}

* {
	-webkit-print-color-adjust: exact;
}
@media screen and (min-width: 914px) {
    body {
        width: 854px;
        margin:0 auto;
    }
}
@media print {
	table, pre {
		page-break-inside: avoid;
	}
	pre {
		word-wrap: break-word;
	}
}
</style>


</head>

<body>

<h2 id="toc_0">简介</h2>

<ul>
<li><p>数据云使用 APICloud 数据云,用法参见文档: <a href="http://docs.apicloud.com/Cloud-API/data-cloud-api">http://docs.apicloud.com/Cloud-API/data-cloud-api</a></p></li>
<li><p>header请求头中必须有以下键值对,以用于验证身份:</p></li>
</ul>

<div><pre><code class="language-none">X-APICloud-AppId:A6924735141113
X-APICloud-AppKey:2eb2e629e08199e07d59b7a690fbedd0f1a889f5.1479311556274</code></pre></div>

<ul>
<li>为了方便考生,每个接口,都给出了一个 curl 的请求示例,以便于考生观察考试结果,考生可直接在 mac终端或windows命令中复制粘贴,以执行获取对应接口的数据.</li>
</ul>

<h2 id="toc_1">1.获取所有banner轮播图数据</h2>

<h3 id="toc_2">基础信息</h3>

<ul>
<li><p>接口地址: <a href="https://d.apicloud.com//mcm/api/banner?filter=%7B%22where%22:%7B%7D,%22skip%22:0,%22limit%22:20%7D">https://d.apicloud.com//mcm/api/banner?filter={&quot;where&quot;:{},&quot;skip&quot;:0,&quot;limit&quot;:20}</a></p></li>
<li><p>请求方式: GET</p></li>
</ul>

<h3 id="toc_3">curl 示例</h3>

<div><pre><code class="language-shell">curl -H &quot;Host: d.apicloud.com&quot; -H &quot;Proxy-Connection: keep-alive&quot; -H &quot;X-APICloud-AppId: A6924735141113&quot; -H &quot;X-APICloud-AppKey: 2eb2e629e08199e07d59b7a690fbedd0f1a889f5.1479311556274&quot; -H &quot;User-Agent: ACT20161119 0.0.0 rv:0.0.1 (iPod touch; iOS 10.0.2; zh_CN)&quot; --compressed https://d.apicloud.com//mcm/api/banner?filter=%7B%22where%22%3A%7B%7D%2C%22skip%22%3A0%2C%22limit%22%3A20%7D</code></pre></div>

<h3 id="toc_4">返回结果示例</h3>

<div><pre><code class="language-javascript">[
  {
    &quot;id&quot;: &quot;582c3076265f8715126ad416&quot;,
    &quot;app_image&quot;: &quot;http://upload.jianshu.io/admin_banners/app_images/2476/8441577ef1551b410138234f39edf42f36fd5356.jpg&quot;, 
    &quot;link&quot;: &quot;http://www.jianshu.com/p/846c63141913&quot;,
    &quot;createdAt&quot;: &quot;2016-11-16T10:09:58.384Z&quot;,
    &quot;updatedAt&quot;: &quot;2016-11-16T10:10:08.437Z&quot;
  }
]</code></pre></div>

<h3 id="toc_5">返回值说明</h3>

<table>
<thead>
<tr>
<th>app_image</th>
<th>link</th>
</tr>
</thead>

<tbody>
<tr>
<td>banner图片地址</td>
<td>点击banner的跳转链接</td>
</tr>
</tbody>
</table>

<h2 id="toc_6">获取文章数据</h2>

<h3 id="toc_7">基础信息</h3>

<ul>
<li><p>接口地址: </p>

<ul>
<li><p>获取第1页数据: <a href="https://d.apicloud.com//mcm/api/post?filter=%7B%22where%22:%7B%7D,%22skip%22:0,%22limit%22:5,%22include%22:%22authorPointer%22%7D">https://d.apicloud.com//mcm/api/post?filter={&quot;where&quot;:{},&quot;skip&quot;:0,&quot;limit&quot;:5,&quot;include&quot;:&quot;authorPointer&quot;}</a></p></li>
<li><p>获取第2页数据: <a href="https://d.apicloud.com//mcm/api/post?filter=%7B%22where%22:%7B%7D,%22skip%22:5,%22limit%22:5,%22include%22:%22authorPointer%22%7D">https://d.apicloud.com//mcm/api/post?filter={&quot;where&quot;:{},&quot;skip&quot;:5,&quot;limit&quot;:5,&quot;include&quot;:&quot;authorPointer&quot;}</a></p></li>
<li><p>获取第3页数据: <a href="https://d.apicloud.com//mcm/api/post?filter=%7B%22where%22:%7B%7D,%22skip%22:10,%22limit%22:5,%22include%22:%22authorPointer%22%7D">https://d.apicloud.com//mcm/api/post?filter={&quot;where&quot;:{},&quot;skip&quot;:10,&quot;limit&quot;:5,&quot;include&quot;:&quot;authorPointer&quot;}</a></p></li>
</ul></li>
<li><p>请求方式: GET</p></li>
</ul>

<h3 id="toc_8">curl 示例</h3>

<div><pre><code class="language-shell">curl -H &quot;Host: d.apicloud.com&quot; -H &quot;Proxy-Connection: keep-alive&quot; -H &quot;X-APICloud-AppId: A6924735141113&quot; -H &quot;X-APICloud-AppKey: 2eb2e629e08199e07d59b7a690fbedd0f1a889f5.1479311556274&quot; -H &quot;User-Agent: ACT20161119 0.0.0 rv:0.0.1 (iPod touch; iOS 10.0.2; zh_CN)&quot; --compressed https://d.apicloud.com//mcm/api/post?filter=%7B%22where%22%3A%7B%7D%2C%22skip%22%3A0%2C%22limit%22%3A5%2C%22include%22%3A%22authorPointer%22%7D</code></pre></div>

<h3 id="toc_9">返回结果示例</h3>

<div><pre><code class="language-javascript">[
 {
    &quot;id&quot;: &quot;582c5179368c14e50b30ccca&quot;,
    &quot;list_image&quot;: &quot;http://upload-images.jianshu.io/upload_images/2873922-2a7ae52ad6748a12.jpg&quot;,
    &quot;title&quot;: &quot;打败\&quot;平庸流水账\&quot;的写作秘籍，让你的文字会跳舞&quot;,
    &quot;comments_count&quot;: 21,
    &quot;likes_count&quot;: 35,
    &quot;views_count&quot;: 512,
    &quot;slug&quot;: &quot;efa5620e15cd&quot;,
    &quot;first_shared_at&quot;: 1478000253,
    &quot;createdAt&quot;: &quot;2016-11-16T12:30:49.858Z&quot;,
    &quot;updatedAt&quot;: &quot;2016-11-17T03:23:59.344Z&quot;,
    &quot;author&quot;: {
      &quot;id&quot;: &quot;582c35fa265f8715126ad5a3&quot;,
      &quot;nickname&quot;: &quot;文叨叨666&quot;,
      &quot;avatar&quot;: &quot;http://upload.jianshu.io/users/upload_avatars/2873922/de0b51d10324.jpg&quot;,
      &quot;intro_compiled&quot;: &quot;31岁已婚大姐，内心住着一个蓬勃的少年。 前图书公司总编辑，百度高级产品经理/跨界达人，知识分享者。微信公号：文叨叨的斜杠生活。专注在写作方法，出版知识普及，职场进阶，个人成长等领域的分享。&quot;,
      &quot;total_wordage&quot;: 35565,
      &quot;total_likes_received&quot;: 645,
      &quot;createdAt&quot;: &quot;2016-11-16T10:33:30.103Z&quot;,
      &quot;updatedAt&quot;: &quot;2016-11-16T10:37:09.818Z&quot;
    }
  }
]</code></pre></div>

<h3 id="toc_10">返回值说明</h3>

<table>
<thead>
<tr>
<th>list_image</th>
<th>title</th>
<th>comments_count</th>
<th>likes_count</th>
<th>views_count</th>
<th>slug</th>
<th>first<em>shared</em>at</th>
<th>author.nickname</th>
<th>author.avatar</th>
<th>author. intro_compiled</th>
<th>author.total_wordage</th>
<th>author. total<em>likes</em>received</th>
</tr>
</thead>

<tbody>
<tr>
<td>文章缩略图</td>
<td>文章标题</td>
<td>文章评论数</td>
<td>文章点赞数</td>
<td>文章浏览数</td>
<td>文章短连接,用于拼接处文章的详情url,如 <a href="http://www.jianshu.com/p/efa5620e15cd">http://www.jianshu.com/p/efa5620e15cd</a></td>
<td>文章发表时间</td>
<td>作者昵称</td>
<td>作者头像</td>
<td>作者简介</td>
<td>作者写作的总字数</td>
<td>作者收到的总赞数</td>
</tr>
</tbody>
</table>




</body>

</html>
